﻿
//using System.Collections;
//using System.IO;
//using System.Text;
//using System.Web;
//using System.Web.Util;

//public class MyHttpWriter : TextWriter
//{
//    private HttpResponse _response;
//    private HttpResponseStream _stream;

//    private HttpResponseStreamFilterSink _filterSink;       // sink stream for the filter writes
//    private Stream _installedFilter;  // installed filtering stream

//    private HttpBaseMemoryResponseBufferElement _lastBuffer;
//    private ArrayList _buffers;

//    private char[] _charBuffer;
//    private int _charBufferLength;
//    private int _charBufferFree;
//    private ArrayList _substElements = null;

//    static IAllocatorProvider s_DefaultAllocator = null;
//    IAllocatorProvider _allocator = null;

//    private bool _responseBufferingOn;
//    private Encoding _responseEncoding;
//    private bool _responseEncodingUsed;
//    private bool _responseEncodingUpdated;
//    private Encoder _responseEncoder;
//    private int _responseCodePage;
//    private bool _responseCodePageIsAsciiCompat;

//    public override Encoding Encoding => Encoding.UTF8;


//}